
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>615同学信息表</title>
    <style type="text/css">
        body{
            color: black;
        }
        p{
            color: skyblue;
        }
        </style>
    <style>
        body{ background:url(image/22.jpg) no-repeat;}
        table {  
            height:1000;width: 960px;
            *border-collapse: collapse; /* IE7 and lower */
            border-spacing: 0px;
            background-size: cover;
            float: left;
            margin:2px;}
        .bordered tr,td{ 
            border:solid #ccc 1px; 
            padding:30px;
            text-align:center; 
            background-color: #FEFEFE;  
            opacity:0.8;}
    </style>
</head>
<body>
<table class="bordered">
<?php
$students = array(
    array('刘旭东','2005010119','男',20,15870509439,'重庆忠县');
    array('胡炜','2005010126','男',21,19128587350,'重庆巫溪');
    array('蓝翕','2005010110','男',21,18623189352,'重庆荣昌');
    array('陈其勇','2005010108','男',21,17783651604,'广州');
    array('张杨坪','2005010121','男',21,13594434380,'重庆巫溪');
    array('代林','2005010134','男',21,18281158592,'四川泸州');
);
$str = "<title>寝室同学信息</title>";
$str .= "<table  border='1' cellpadding='0' cellspacing='0' >";
$str .= "<tr><td colspan='6'>寝室同学信息</td></tr>";
$str .= "<tr><td>姓名</td><td>学号</td><td>性别</td><td>出生地</td><td>年龄</td><td>手机号</td></tr>";	
//循环数组中商品信息
foreach($students as $values){
    $str .= '<tr>';
    foreach($values as $v){
        $str .='<td>'.$v.'</td>';
    }


    
    
 
}


echo $str;
?></table>

</table>

<a href="sj.php">年龄计算结果：</a>
<a href="轮播.html">轮播</a>
 </body>
<html>